﻿#region 命名空间

using System.Web.Optimization;

#endregion

namespace Sharp.WebBooter
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/lib").Include(
                "~/Scripts/jquery-{version}.js",
                "~/Scripts/jquery.unobtrusive*",
                "~/Scripts/jquery.validate*",
                "~/Scripts/JSLINQ.js"
            ));

            bundles.Add(new ScriptBundle("~/bundles/app").Include(
                "~/Scripts/App/*.js"));
            bundles.Add(new ScriptBundle("~/bundles/vm")
                .Include("~/ViewModel/*.js")
                .Include("~/Areas/Demo/Scripts/TroubleshootingViewModel.js"));


            BundleTable.EnableOptimizations = false;
        }
    }
}